How can a military occupier legalize anything in an occupied country? This would be legal in the eyes of Israel only. You say yourself these buildings are illegal as the world, even the US says...
India floods derail two trains, killing at least 20; hundreds rescued (Reuters)
from the article: Plan to legalize West Bank settlement of Eli paves way for its expansion