Google illegally maintained an online search monopoly, a US court has said, in one of the biggest rulings against the company's market dominance.