By federal law, the military cannot assign based on religion (or temple worthiness). The fact that up till now all the Army commanders have been such is based on the current/previous Commander's personal prefernce and lifestyle.
The issue with BYU has nothing to do w/ being a temple recommend holder, but all about the HC.