An agreement has been reached to keep the government open