Deal nearing on Senate climate bill