 Starting from the New York Times, the Supreme Court swept aside a longstanding legal precedent on Friday, reducing the power of executive agencies and endangering countless regulations by transferring power from the executive branch to Congress and the courts. Chief Justice John G. Roberts Jr., writing for the majority, said that agencies have no special competence and that judges should determine the meaning of federal laws.