Lionel Messi took just two minutes on his return to score a goal as Inter Miami defeated Philadelphia Union in an MLS game.