Republicans and Democrats linked arms Wednesday to pass a $1 trillion spending bill to fund the government for the rest of the fiscal year, brushing aside President Trump’s calls for fiscal restraint and spreading cash across their favored programs. The 310-117 vote was a major victory for Democrats, who not only blocked most of Mr. Trump’s…