The point about the 3rd Congressional District moving further left is a very important one to remember, and is one of the key reasons Clinton was able to eke out a victory in the state, but another important and thus far unmentioned point is this: Evan McMullin was on the ballot in Minnesota, as opposed to the other typically-Democrat Midwestern states, and received 53,076 votes there (Clinton won the state by 44,765). Also, it's important to remember Trump came in 3rd in the Republican Primary in this state, and the state's Republican Party is historically more moderate than not.
Finally someone is bringing up mcmuffin that is the reason trump lost if the polls had shown trump losing by only 1 point he would have won by the same margin that he did in Michigan the mcmuffin voters would have gone trump or if he wasn't on the ballot at all trump would have won.