As Trump pushes the limits of presidential power, the courts push back