A Lithuanian court has sentenced a man who attacked a cyclist wearing pro-Ukraine clothing to 15 months of restricted liberty.