Spartans defeat no. 7 Michigan