Lawmakers vote to end government shutdown