When you file a civil lawsuit, you are suing someone. If you win, then you win a judgment of money and/or other remedies like an injunction.
From the dictionary, to sue means to start legal proceedings. That is filing the papers at the courthouse and serving the summons.