Class-Weighted Classification: Trade-offs and Robust Approaches