You can remember the meaning of 官司 with this easy mnemonic:
Some lady filed an official (官) lawsuit against my company (司).
Using mnemonics to remember the meaning of Chinese characters like can have an enormous impact on how long to learn Mandarin it takes.