US government is spending billions on old tech that barely works, says watchdog