US layoffs halve in June as tech job cuts ease: report