"Against", in this context, means that they were pressed between the English and the wall. "To" means in the direction of the wall, not necessarily touching it.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.