The U.S. government is trying to stave off China and other countries challenging the U.S. for dominance in the next generation of the world’s fastest computers.

The Department of Energy on Thursday said it would award $258 million over three years to be shared by six tech companies, as part of a plan to develop new supercomputers that can crunch data at least 50 times faster than the nation’s most powerful systems today.

The...