Spread by Luther, possibly a calque of Middle Low German up dat. Compare Dutch opdat (which unlike the German is in general popular use).
auf dass