The conductors or managers on all such railroads shall have power, and are hereby required, to assign to each white or colored passenger his or her respective car, coach or compartment.