If the court orders separate trials as provided in Rule 42, judgment on a counterclaim or cross-claim may be rendered in accordance with the terms of Rule 54 when the court has jurisdiction to do so, even if the claims of the opposing party may have been dismissed or otherwise disposed of.