The bill includes $369bn (£305bn) for climate action – the largest investment in America’s history.