Provable optimal transport with transformers: The essence of depth and prompt engineering