Microsoft President Brad Smith will testify before a House of Representatives panel on homeland security on Thursday, fielding questions about the company’s security practices after Russian and Chinese hackers breached its systems over the past year.