Congressional leaders announce an agreement on spending levels, a key step to averting shutdown