The Republican-led Senate failed to muster enough votes for a plan backed by President Trump or for a bipartisan measure the White House had rejected.