Welcome to our community and thank you for your question.
I did a little bit of research about the legal framework of housing for asylum seekers. Here is the law that I found: https://www.gesetze-im-internet.de/asylvfg_1992/__47.html
Usually you can leave the accommodation facilities after a maximum of 6 months. But there are exceptions from this general rule.
The important part is (1b). It says that the responsible federal state can decide that an asylum seeker has to stay in an accommodation until BAMF decides on his/her case. Also if BAMF says that the application is illegitimate or obviously baseless ("unzulässig" or "offensichtlich unbegründet") they can be obligated to stay there until they get deported. But only up to a maximum of 24 months. However, if BAMF is not able to decide whether an application is illegitimate or obviously baseless at short notice, you can't be forced to stay there longer than the usual duration.
I'm not a lawyer though and I'm not entirely sure if my answer is correct and fitting for your case. Let's see if @Marcel or @Steven can confirm or contradict.