UK law enforcement secretly bugged a “shadow police operation” to break into the British home of a young mother on behalf of China, a court has heard.