An apparent leak prompted Merck and Moderna to release the full trial results ahead of schedule, but investors puzzlingly greeted the good news by sending the companies’ stock prices down.