There is no code of conduct. So it is legal. But this is obvious unsportmanlike behavior. I hate this if they do this in selected matches.

I want every team play their best with their available. I don't like tanking. But I understand/accept/respect if they consistently arrange weak lineup for remaining matches from point of decision.

However, I also suggest you accept this and move on. This is only a game.