Ulta Beauty on Thursday boosted its outlook and surpassed Wall Street’s quarterly earnings and sales expectations.