Texas court halts execution of man days before scheduled killing