Legal experts say the US attack on an Iranian warship did not violate international law, but concerns have been raised about what happened afterwards.