Justices revive permit for pipeline under Appalachian Trail