Samsung has agreed to pay Apple $548m in damages over iPhone patents. But the five-year legal battle is far from over.