A court could soon rule Boris Johnson’s no-deal Brexit threat to shut down parliament illegal