I've never bought a weekly STM pass from the machines at YUL (only the 24 hour and 3-day passes) so I'm not 100% sure, but worst case scenario you can just buy the 24 hour pass to get into the city. The machines are basically right in front of you as you exit customs, past the newsstand/cafe by the exit doors to the right. Very easy to spot.