A council has been given permission to force the owners of damaged buildings on one of Leeds' oldest streets to repair them.