Democrats scramble to finalize spending bill as Biden talks climate policy abroad