For others that might be reading,, you can cram a 150mm motor into 135, by using a single speed freewheel, and a lot of dish on the wheel. the other side unchanged, the disc sill lines up same.
I misunderstood the original question. The motor itself might have to have a new axle shoulder machined onto it, or maybe just a spacer shortened. The threads likely will stop too short, so a big stack of washers or thick torque arm will be needed on the outside of the dropout, so you can still get the nut to put pressure on the dropout.
I was thinking, cram 150 into 135mm,, and still have 7 gears. Sorry about the brain fart. I'm old and dumber now.