Congressional leaders have successfully reached an agreement on budget appropriations and a temporary funding extension to avoid a government shutdown.