To my knowledge enforcing a civil court judgement is rarely the responsibility of a state body. It is plausible that the ship's seizure was an opportunity for the IRGC to enforce a civil court judgement and an opportune time too.