On congruences induced by certain relations on semigroups