They own the building. The Palestinians agreed that Israel would control that part of the city. So it's not illegal.
Report: IDF find M-16 rifle hidden in Palestinian's car in West Bank (Haaretz)
from the article: Controversial Hebron house to be evacuated by April 25, official says