The Sandia Corporation has agreed to reimburse the Energy Department after allegedly spending federal funds on lobbying instead of national security.