SAN FRANCISCO — A federal judge ruled Tuesday that a Bush administration plan to allow commercial logging inside the Giant Sequoia National Monument violates environmental laws.