Long-Bailey vows to rewrite party’s constitution to enshrine fight against climate emergency