Court upholds statutory protection for polar bears