REDFORD, Mich. —President Obama brought his campaign to raise taxes on the wealthy to the greasy cradle of working-class America on Monday, visiting a Detroit area auto engine plant to drum up public support for his plan to avoid the “fiscal cliff.”

Obama’s visit to Michigan comes as the state’s Republicans, backed by powerful and well-financed conservative groups, are moving to adopt so-called right-to-work legislation that would effectively ban unions here from requiring workers to pay dues.

In his remarks, Obama lashed out at state legislators who are pushing the measure, telling the assembled auto workers that it was akin to “taking away your rights to bargain for better wages and working conditions.”