Restaurant Brands reported quarterly earnings that beat analysts’ expectations, fueled by sales growth at Burger King and Tim Hortons.