Ukrainian president agrees to scrap anti-protest law