The US has announced sanctions on two Turkish officials related to the detention of an American pastor.