Musk offers to end legal fight, pay $44 billion to buy Twitter