Supreme court rules on cases