Optimal Sampling under Cost for Remote Estimation of the Wiener Process over a Channel with Delay