Newmark Group’s stock on Friday notched its biggest one-day gain in more than a year, with investors snapping up shares of the commercial real-estate services company as it talked up its prospects for artificial-intelligence data centers and electric-power development.