WASHINGTON—The Pentagon is weighing a delay to its most costly and controversial weapons program, the F-35 stealth fighter plane, as part of a short-term cost-saving move, according to defense officials.

Defense Secretary Chuck Hagel is considering the delay as one option presented by a task force to cut Pentagon spending over the second half of this decade.

But...