Legal action has been launched against the government over “unacceptable” pension delays for divorced and retiring teachers.