The recently announced "Golden Dome" project intends to get around this issue by putting a vast constellation of satellites into orbit. Each satellite would likely need a serious source of power in order to use its laser. Assuming that's just an engineering problem, then the issue becomes coverage. That is, depending on the adversary's capabilities, you'd need an absolutely massive constellation in orbit [0].
[0] https://en.wikipedia.org/wiki/Golden_Dome_(missile_defense_s...