Section 95. Railroad, railway, railway express and steamboat police officers shall be paid by the corporation or company upon whose petition they are appointed. Such corporation or company shall be liable for any official misconduct of such officers to the same extent as for torts of agents or servants in their employ.