Michael Cohen was one of former President Trump’s most trusted legal advisers before Trump was elected president in 2016.