SAN FRANCISCO—The two biggest—and bitterest—rivals in the smartphone market will have to endure another bruising trial after a federal judge ruled that jurors miscalculated nearly half the $1 billion in damages it found Samsung Electronics owed Apple Inc. for patent infringement. U.S. District ...