Deductions & credits

First, you need to probably correct your German tax return. Germany does not tax worldwide income if you live abroad. Why did Germany tax that income? Did you pay social security in Germany on that income?

The income you earned for the one month consultant work for a German company is not considered foreign income in the US since you did the work in the US. It is treated just like any other self employment income on a1099.