US lawmakers vote on deal to end longest government shutdown