The Supreme Court on Tuesday limited the reach of the Endangered Species Act, setting aside a lower court ruling that afforded protection to an area where threatened animals do not live but might one day with significant changes.

The justices, in a unanimous but narrowly written decision, questioned whether a wooded area in Louisiana could be deemed under the law as a “critical habitat” for endangered frogs who might be able to live there in the future if some trees were removed.