The building-systems maker beat Q2 estimates and raised its full-year outlook that factors in tariff impacts.