Scots could face more drastic restrictions on transport and heating emissions to keep a legal net zero target on track.