A judge sharply criticised Elon Musk for not properly turning over text messages that could be evidence in Twitter’s lawsuit seeking to force the billionaire to complete his proposed $44 billion buyout of the social media platform.