STOCKHOLM—Sweden’s government on Tuesday said it wants to drop a long-standing budget surplus target to give it greater flexibility for future investments in infrastructure projects.

The Social Democrat-led government said a new target to keep public finances in balance is more suitable given a stable Swedish economy.

As a first step, the...