Cuban, a past critic of Trump, joined the president for an event touting the discount prescription drug site TrumpRx