US Democrats accept compromise to end government shutdown