Federal government dodges shutdown in 11th-hour deal