This is true, but the situation was Apple (the computer company) moved into the music business with iTunes; Apple (the record company) was already long established. Apple (the record company) was the plaintiff trying to block Apple (the computer company).
My (limited) knowledge is solely of US law, but different companies with the same trademark can coexist in different industries, e.g. Delta (the airline) and Delta (the faucet company).
It happened twice actually. Apple (the record company) sued Apple (the computer company) back in the 80's. The judgement then was that the computer company could keep using their name so long as they never enter the music business. Then they released iPod & iTunes, and got sued again for breach of their court-mediated agreement. The record company won a settlement IIRC.
My (limited) knowledge is solely of US law, but different companies with the same trademark can coexist in different industries, e.g. Delta (the airline) and Delta (the faucet company).