Congress leaders reach deal on spending levels in step to averting shutdown