Apple loses to supreme court, must pay $450mn in settlement