Swedish government faces budget defeat as PM threatens to resign