Congress leaders reach $1.66tn deal on US spending levels ahead of feared shutdown