Yes, it was illegal. In 2005 USC pushed Reggie Bush in the end zone for a last second touchdown that wasn't called. At the time the rule outlawed pushing or pulling a teammate but it was hardly called. It was either that off season or the one after that pushing a teammate was removed from the rule therefore permitted.