Petty Officer 3rd Class Edmund Di Liscia petitioned court after being ordered to remove facial hair despite exemption due to religious practices