BRUSSELS—The European Union opened an antitrust investigation into whether Microsoft is abusing its dominant position by bundling its Teams videoconferencing app with its popular Office productivity software, marking the first formal EU probe of the software giant in more than a decade.