Congress votes to avert government shutdown