There is a wavelenght window where the IR spectrum suffers no attenuation from athmosphere. So a satellite based infra red laser is not affected by athmosphere at any distance. As a bonus, IR lasers are also invisible to the naked eye.
https://en.wikipedia.org/wiki/Infrared_window
https://www.ga.com/general-atomics-boeing-partner-on-high-energy-laser-weapon-system
https://www.lockheedmartin.com/en-us/capabilities/directed-energy.html