Less than four months after President Barack Obama took office, his new administration received a forceful warning about the dangers of offshore oil drilling.

The alarm was rung by a federal appeals court in Washington, D.C., which found that the government was unprepared for a major spill at sea, relying on an "irrational" environmental analysis of the risks of offshore drilling.

The...