Trump-era oil and gas leases in Montana and the Dakotas could be invalidated, thanks to settlement