In a test of President Recep Tayyip Erdoğan's leadership, the outcome could be crucial for NATO and U.S. support for Ukraine.