Myanmar’s military is facing its biggest military challenge since it seized power in a coup more than two years ago, after an alliance of opponents cut off key trading routes and seized towns and dozens of outposts near the Chinese border.