The two ships were allowed passage through the strait — which has been all but closed for nearly two weeks — after a deal between New Delhi and Tehran.