Judge suspends Amazon dam project due to legal questions