Late TD pass gives Cowboys the win over Vikes