From what I've read, James Marsden was actually upset about this; so much so he sent a strongly worded letter to Jeff Fowler to convince him into getting a bigger role in the film.
Just look up "James Marsden letter" for more info.
@ReceWeinbergSonic 4 leak!🚨
Tom wakowski (James marsden) will barely appear in Sonic 4 and will only appear in the beginning and the end for not a lot of time. https://t.co/rv4qlYONgr