Samsung does not have to pay Apple $399 million in patent dispute, Supreme Court rules