HP earnings met analysts’ expectations, but revenues in its key segments fell more than Wall Street had anticipated.