Some companies have built successful businesses on government funding. Now, as Washington gets ready to begin automatic budget cuts, these firms are taking stock.