Sony’s quarterly profit topped analyst expectations thanks to strong sales of PlayStation games and growth in its music business, which also benefited from a one-time gain on share sales of Spotify Technology.