Manchester City and the Premier League have both claimed victory in a legal battle over rules relating to commercial deals.