Washington has now averted a government shutdown after an up-and-down week saw House Republicans offering a united front and resistant Democrats cornered.