An amended version of the House-passed Trump budget was voted on at the end of a marathon vote series in the Senate.