Medway Council's budget has been passed after the Government gave the Labour administration permission to borrow money.