A test vote on the bill failed to gain the 60 votes needed to advance in the chamber as senators stuck to party lines in a 51-45 vote tally.