The legislation passed 49 to 1 in the Pennsylvania Senate, sending it to the state House for consideration.