The suspect followed employees and was found with fake US IDs and two Russian passports, prosecutors say.
German reforms mean foreign and domestic intelligence services will have greater powers to combat espionage, terrorism and sabotage.
The man, charged with spying for China, said he was "unprofessional" to send "gossiping" texts to a friend.
In his first interview, parliamentary researcher Chris Cash has spoken to the BBC about being accused of spying for China and has provided the thousands of messages at the heart of the dropped China spy case.
Thousands of messages seen by BBC show how a Chinese official sought details of sensitive political matters.
The US president said he spoke with Jensen Huang on Monday and asked him about the affair with the alleged spy.
Adoration for the US tech giant’s CEO Jensen Huang has been labelled “Jensanity”, but can his reputation survive the news of his affair?
Critics say the move comes too late, that the files themselves are incomplete, and the move risks sowing division and causing unnecessary anguish.
MI5 chief Sir Ken McCallum welcomed the court's decision and says its judgment "underlines MI5's serious failures in this case".