Battles over priorities in a huge government-wide spending bill are essentially settled, leaving a scaled-back plan for President Donald Trump's border wall and a huge rail project that pits Trump against Capitol Hill's most powerful Democrat as the top issues to be solved.