The principle is that whatever the national law says has to be followed, but if there isn't a national law, the federal country can do something. Also housing is more of a local issue.
There are laws to "eminent domain" stuff, but it has been mostly used for Autobahn and coal mining in the past and only affected peasants in little villages who couldn't fight back.
Otherwise good question, that's what almost everyone is asking at the moment.