I don't feel any difference in meaning. There is a difference in emphasis - the second sentence emphasizes Mary's role in John's acceptance more than the first.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.