The Senate passed President Donald Trump’s signature tax-and-spending legislation on a party-line vote that marks the largest overhaul to the tax code since 2017.