Man who planned machete attack on gay pride night gets indefinite hospital order