Approval of legislation eases US government shutdown crisis