A federal judge on Thursday overturned a 2018 Trump administration directive that sought to speed up energy leases on public land by limiting the amount of time the public could comment.

Why it matters: U.S. Chief Magistrate Judge Ronald Bush's decision voids almost a million acres of leases in the West, according to The Washington Post. It's a victory for environmentalists, who tried to block the change as part of an effort to protect the habitat of the at-risk greater sage grouse.

The ruling invalidated five oil and gas leases in Nevada, Utah, and Wyoming, and affected 104,688 square miles of greater sage-grouse habitat, per The Associated Press.

Leases in greater sage-grouse habitat will return to allowing 30 days of public comment and administrative protest.

The big picture: From Axios' Amy Harder, this is the latest in a long and convoluted list of regulatory rollbacks the Trump administration is pursuing on environmental rules that courts are, more often than not, rebutting. With Congress gridlocked on these matters, expect the courts to be the default way Trump's agenda faces checks (unless, of course, a Democrat wins the White House this November).