Lawmakers reach "agreement in principle" to avoid another government shutdown