Obama criticizes right-to-work during visit to Redford