Teacher verdict illegal, BJP leaders influencing judiciary: Mamata