Congress votes to end shutdown, funding bill heads to Trump