The Knesset voted late Thursday night to extend Channel 10’s broadcasting franchise for two years and to give the cash-strapped television station a loan to cover its debts to the government — while requiring it to transfer its operations to Jerusalem within nine months.

Over the past few years, the station has sunk tens of millions of shekels into debt, failing to meet criteria for its continued rights to broadcast. Nonetheless, many at the channel had accused the government of Prime Minister Benjamin Netanyahu of personal animus in threatening not to extend its franchise, after the channel broadcast a series of exposés about Netanyahu and members of his circle.