According to the German prosecutor’s office, the men sought to undermine German military support for Ukraine.