Their appearance at the Pete & Thomas Foundation Gala highlighted Megan’s charitable mission supporting education, housing and community goodwill