The successful vote means the long-delayed bill has now been passed on to President Trump to sign into law.