A court has declared a strike at a Mahindra & Mahindra autos plant illegal and ordered workers to report to their shifts, the top Indian utility vehicle maker said on Thursday.