For example: "The door was ________ between two bookshelves"
"The door was wedged between two bookshelves."
[with object] Fix in position using a wedge.
[with object and complement] ‘the door was wedged open’
[with object and adverbial] Force into a narrow space.
‘I wedged the bags into the back seat’
As the second meaning indicates, if something is wedged there is a sense of it being forced into position. Strictly speaking, you would not normally take a door and force it into its location between two bookshelves - door frames don't tend to be mobile. However, the word is often used metaphorically, for example to describe a tightness of fit (which suits your example sentence) or being forced to choose between competing social or political objectives (e.g. a good policy outcome vs good public opinion).
I think it is JAMMED.
According to Merriam-Webster's Dictionary (https://www.merriam-webster.com/dictionary/jam) :
- to become blocked, wedged, or stuck fast
// The line jammed and the boat hung useless.