By suing Republican states and making sharp reversals in old cases, the Trump administration is using courts to fast-track major shifts in policy.