No need for 'laws'. The President has few powers, Congress is the one with the many enumerated powers, many of those setting the rules of the military, etc.
So assume congress decided to make the military disobey Obama’s commands by passing a law:
1. Would military obey that law?
2. Should they disobey the commander in chief or congress?
The short answer is the only control congress has over a president is found in the constitution, not in the statutes. It should never be different or we would have a president who was a puppet of congress.