Apple landed a mighty blow against Samsung in court