Notwithstanding anything contained in any other law for the time being in force, an agreement between the members of a trade union shall not be void or voidable by reason only that any of the objects of the agreement are in restraint of trade: Provided that nothing in this section shall enable any civil court to entertain any legal proceedings ...