How can I stop a dishwasher water supply from causing the tap water to smell?
A check valve will surely prevent water from flowing backwards, as that's exactly what it's designed to do.

In case you're not familiar with them, the arrow points in the direction of flow. So whichever way you want the water to flow, point the arrow in that direction.